import Vue from 'vue'
import VueRouter from 'vue-router'
import Course from '../views/course/course.vue'//课程
import Redhat from '../views/redhat/index.vue'  //红帽  
import Huawei from '../views/huawei/index.vue'//华为
import Oracle from '../views/oracle/index.vue'//甲骨文

import Home from '../views/home/Home'  //首页
import Tengke from '../views/tengke/index.vue'    //腾科认证体系
import TengkeEd from '../views/tengkeEd/index.vue'  //关于腾科教育中心
import Dynamics from '../views/dynamics/index.vue'  // 公司动态
import Dydetails from '../views/dydetails/index.vue'    //公司动态详情

import Business from '../views/business'  //业务入口
import socialEnrollment from '../views/business/components/social-enrollment.vue'   //社会招生
import collegeEnrollment from '../views/business/components/college-enrollment.vue'   //高校招生
import enterpriseEnrollment from '../views/business/components/enterprise-enrollment.vue'   //企业招生
import universitydetails from '../views/business/components/universitydetails.vue'   //高校详情
import Companydynamics from '../views/companydynamics/index.vue'    //客户服务中心
import Educationcentre from '../views/educationcentre/index.vue'    //学员就业及人才服务

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/tengkeEd',
    name: 'tengkeEd',
    component: TengkeEd
  },
  {
    path: '/tengke',
    name: 'tengke',
    component: Tengke
  },
  {
    path: '/dynamics',
    name: 'dynamics',
    component: Dynamics
  },
  {
    path: '/dydetails',
    name: 'dydetails',
    component: Dydetails
  },
  {
    path: '/course',
    name: 'course',
    component: Course
  },
  {

    path: '/redhat',
    name: 'redhat',
    component: Redhat
  },
  {
    path: '/huawei',
    name: 'huawei',
    component: Huawei
  },
  {
    path: '/oracle',
    name: 'oracle',
    component: Oracle
  },
  {
    path: '/business',
    name: 'business',
    component: Business,
    children:[
      {path:'',name:'socialEnrollment',component:socialEnrollment},
      {path:'collegeEnrollment',name:'collegeEnrollment',component:collegeEnrollment},
      {path:'enterpriseEnrollment',name:'enterpriseEnrollment',component:enterpriseEnrollment},
      {path:'universitydetails',name:'universitydetails',component:universitydetails},
    ]
  },
  {
    path: '/companydynamics',
    name: 'companydynamics',
    component: Companydynamics
  },
  {
    path: '/educationcentre',
    name: 'educationcentre',
    component: Educationcentre
  },
]

const router = new VueRouter({
  routes
})

export default router
